package com.tmptSource.mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by wxy on 2016/7/29.
 */
public interface MyBaseMapper<T> {



    public T selectById(long id);



    /**
     * 获取双随机任务人员名单
     * @return
     */
    public List<T> selectOwrAll();

    public List<T> selectAll(Map<String, Object> mapParam);


    /**
    * 分页查询
    */
    public List<T> selectByPagination(Map<String, Object> mapParam);
    /**
     * 分页查询
     */
    public List<T> selectByPaginationWithoutLogin(Map<String, Object> mapParam);

    /**
    * 查询符合条件的总记录数
    */
    public int selectListCount(Map<String, Object> mapParam);
    /**
     * 查询符合条件的总记录数
     */
    public int selectListCountWithoutLogin(Map<String, Object> mapParam);


    /**
     * 查询合计数据(select '合计',sum(balance) as balance from table )
    */
    public T selectSum(Map<String, Object> mapParam);

    public long deleteById(Map<String, Object> mapParam);

    public long insert(T t);

    public long updateById(T t);


}
